package com.hckj.medical.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hckj.medical.entity.Booking;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author hckj
 * @since 2023-11-25
 */
public interface BookingMapper extends BaseMapper<Booking> {

    List<Map> selectAllByDid(Map map);

    //根据预约单id和就诊科室id查询预约单
    List<Booking> selectBookingByidAnddepartment(@Param("id") Integer id, @Param("department")Integer department);

    //查询预约成功  预约失败的预约单
    List<Booking> selectBookingBybstatus();

//    用户中心用户管理
    Page<Map> findAllBooking(Page page,@Param("map") Map map);

    Map selectByid(Integer id);
}
